package zerous.infinite.util;
import com.badlogic.gdx.math.*;

public class MathUtil
{
	public static float distance(Vector2 p, Vector2 P) {
		return distance(p.x, p.y, P.x, P.y);
	}
	
	public static float distance(float x, float y, float X, float Y) {
		float sx = (x - X)*(x - X);
		float sy = (y - Y)*(y - Y);
		float result = (float)(Math.sqrt(sx + sy));
		return result;
	}
}
